<template>
	<view>
		<view class="menu-list">
			<block v-for="(item,index) in menuList" :key="index">
				<view class="menu-tem" @click="itemClickHandle(item.url)">
					<u-icon :name="item.icon" color="#ff0000" size="70"></u-icon>
					<text class="menu-item-text">{{item.name}}</text>
				</view>
			</block>
		</view>
	</view>
</template>

<script>
	import {
		uniTable
	} from '@dcloudio/uni-ui'
	export default {
		components: {
			uniTable
		},
		data() {
			return {
				menuList: [{
					icon: 'home-fill',
					name: '楼栋长端管理',
					url: "/pages/manage/manageLou/manageLou"
				},{
					icon: 'red-packet-fill',
					name: '活码管理',
					url: "/pages/manage/manageHuoma/manageHuoma"
				},{
					icon: 'red-packet-fill',
					name: '活码预览',
					url: "/pages/huoma/huoma"
				},{
					icon: 'hourglass-half-fill',
					name: '审核楼栋长',
					url: "/pages/manage/manageOrder/check/check"
				},{
					icon: 'hourglass-half-fill',
					name: '问题反馈审核',
					url: "/pages/manage/chargeManage/feedbackCheck/feedbackCheck"
				},{
					icon: 'hourglass-half-fill',
					name: '查询订单号',
					url: "/pages/manage/manageOrder/searchOrder/searchOrder"
				},{
					icon: 'hourglass-half-fill',
					name: '楼栋长薪资计算',
					url: "/pages/manage/chargeManage/loudongzhangMoney/loudongzhangMoney"
				},{
					icon: 'hourglass-half-fill',
					name: '快递订单统计',
					url: "/pages/manage/manageOrder/censusDelivery/censusDelivery"
				},{
					icon: 'hourglass-half-fill',
					name: '负责人赔付申请',
					url: "/pages/manage/manageOrder/censusDelivery/censusDelivery"
				}],
				openid:""
			}
		},
		onLoad(options) {
			this.openid = options.openid
		},
		methods: {
			itemClickHandle(url) {
				let that = this
				uni.navigateTo({
					url: url+'?openid='+that.openid
				})
			}
		}
	}
</script>

<style>
	.menu-list {
		display: flex;
		width: 100vw;
		flex-wrap: wrap;
	}

	.menu-tem {
		box-sizing: border-box;
		flex: 0 0 33.33%;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		height: 192rpx;
		border-right: 1px solid #eaeef1;
		border-bottom: 1px solid #eaeef1;

	}
	.menu-item-text {
		font-size: 26rpx;
		margin-top: 10rpx;
		color: #333;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
</style>
